package org.jivesoftware.smackx.provider;

import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.PacketExtensionProvider;
import org.jivesoftware.smackx.packet.MultipleAddresses;
import org.xmlpull.v1.XmlPullParser;

public class MultipleAddressesProvider
  implements PacketExtensionProvider
{
  public PacketExtension parseExtension(XmlPullParser paramXmlPullParser)
    throws Exception
  {
    int i = 0;
    MultipleAddresses localMultipleAddresses = new MultipleAddresses();
    while (i == 0)
    {
      int j = paramXmlPullParser.next();
      if (j == 2)
      {
        if (paramXmlPullParser.getName().equals("address"))
        {
          String str1 = paramXmlPullParser.getAttributeValue("", "type");
          String str2 = paramXmlPullParser.getAttributeValue("", "jid");
          String str3 = paramXmlPullParser.getAttributeValue("", "node");
          String str4 = paramXmlPullParser.getAttributeValue("", "desc");
          boolean bool = "true".equals(paramXmlPullParser.getAttributeValue("", "delivered"));
          String str5 = paramXmlPullParser.getAttributeValue("", "uri");
          localMultipleAddresses.addAddress(str1, str2, str3, str4, bool, str5);
        }
      }
      else if ((j == 3) && (paramXmlPullParser.getName().equals(localMultipleAddresses.getElementName())))
        i = 1;
    }
    return localMultipleAddresses;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smackx.provider.MultipleAddressesProvider
 * JD-Core Version:    0.6.1
 */